const Mock = require("mockjs");
//随机生成电影数据
const {movies}=Mock.mock({
    "movies|10":[{
        "name":'@csentence(5, 6)',  //电影名
        "ename":'@word(7, 8)',  //电影英文名
        "type|1":["喜剧","爱情","动画","剧情","恐怖","惊悚","科幻","动作","悬疑","冒险","记录片"],//类型
        "area":'@city',  //首映地区
        "time":/^1[0-9]{2}$/,  //电影时长
        "upDtate":'@datetime("yyyy-MM-dd")',  //大陆上映时间
        "score":/^[5-9][0-9]$/,  //电影评分
        "count":/^[1-9]{5}$/,  //票房
        "intro":'@cparagraph(2, 3、4)', //剧情简介
        "isClassic|1":[true,false],  //是否经典
        "director|1":"@cname", //导演名
        "actor":"@cname", //演员名
       
    }],

})
 
 
module.exports = { movies };
